/**
 * 小程序配置文件
 */
const env = require('env')
const baseUrl = env.baseUrl

const config = {
  appid: env.miniAppid,
  version: '0.1.0',
  qrCodeTime: 300000,
  service: {
  },
  pages: {
    'javaQuestionList': '/pages/javaQuestionList/javaQuestionList', //java知识列表
    'javaQuestionDetail': '/pages/javaQuestionDetail/javaQuestionDetail', //java知识详情
    'webview': '/pages/webview/webview',
  },
  service: {
    getJavaQuestionAnswerById: `${baseUrl}/study/v1/app/question/detail`,
    getJavaQuestionList: `${baseUrl}/study/v1/app/question/list`,
    getStudyModuleList: `${baseUrl}/study/v1/module/list`,
    createQuestion: `${baseUrl}/study/v1/app/question/create`,
    getToken: `${baseUrl}/study/v1/user/query/token`,
    getBanner: `${baseUrl}/study/banner/v1/list`,
  },
  url: {
    images: `${env.staticDomain}/images`
  },
  lazyCodeLoading: 'requiredComponents'
}

module.exports = config
